﻿<UserControl x:Class="EmployeeModule.EmployeeMain.EmployeeMainView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:l="clr-namespace:EmployeeModule" 
    xmlns:lmain="clr-namespace:EmployeeModule.EmployeeMain"
    xmlns:lchooser="clr-namespace:EmployeeModule.EmployeeChooser" 
    xmlns:prism="clr-namespace:Prism;assembly=Prism">
    <StackPanel Margin="5">
        
        <StackPanel Orientation="Horizontal">
        <Button Margin="4" HorizontalAlignment="Left" Command="{x:Static lchooser:EmployeeChooserCommands.ChooseEmployee}">Choose Employee</Button>
        
            <ContentPresenter Width="100" />
        
        <ComboBox HorizontalAlignment="Left" Name="eTypes" SelectedIndex="0">
            <ComboBoxItem>Mort</ComboBoxItem>
            <ComboBoxItem>Elvis</ComboBoxItem>
            <ComboBoxItem>Einstein</ComboBoxItem>
        </ComboBox>
        <Button Margin="4" HorizontalAlignment="Left" 
                Command="{x:Static lmain:EmployeeMainCommands.AddEmployee}"
                CommandParameter="{Binding ElementName=eTypes, Path=SelectedValue}">Add new Employee</Button>
        </StackPanel>
        
        <Grid prism:RegionManager.Region="employeeDetail" />
    </StackPanel>
</UserControl>
